<script>
import Banner from "@/components/BannerComponent.vue";

export default {
  name: "App",
  components: {
    Banner,
  },
}
</script>

<template>
  <div class="App">
    <div class="row">
      <div class="col">
        <div class="page-header">
          <Banner/>
        </div>
      </div>
    </div>

    <div class="row justify-content-md-center">
      <div class="col-sm-2">
        <div class="list-group">
<!--    浏览器历史记录默认是push模式  点击链接会在历史记录中添加一条记录  -->
<!--   使用replace属性会替换当前历史记录而不是追加记录-->
          <router-link replace class="list-group-item" active-class="active" :to="{ name: 'count'}">count</router-link>
          <router-link replace class="list-group-item" active-class="active" to="/person">person</router-link>
          <router-link replace class="list-group-item" active-class="active" to="/message">message</router-link>
        </div>
      </div>
      <div class=" col-sm-10 ">
        <div class="panel">
          <div class="panel-body">
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>


</style>